package com.huangliusong.desigin.pattern.structual.decorator.v2;

/**
 * @author huangliusong
 * @since 2018/10/11
 * {@link }
 */
public abstract class AbstractDecorator extends ABattercake{
    private ABattercake aBattercake;

   // protected  abstract void doSomething();

    public AbstractDecorator(ABattercake aBattercake) {
        this.aBattercake = aBattercake;
    }

    protected String getDesc() {
        return aBattercake.getDesc();
    }

    protected int cost() {
        return aBattercake.cost();
    }
}
